<div class="st-cp-pg-home">
    
    <div class="col1">
        <div class="txt_pt">
            <img class="aspas ini" src='<?php echo $this->urlbase; ?>/public/media/images/aspas_ini.png' alt="Piti Ochoa Ughini" />
            <span class="tl"><?php echo $this->texto['TXH_NOM']; ?></span>
            <br>
            <?php echo $this->texto['TXH_TXT']; ?>
            <br>
            <span class="autor"><?php echo $this->texto['TXH_AUT']; ?></span>
            <img class="aspas fim" src='<?php echo $this->urlbase; ?>/public/media/images/aspas_fim.png' alt="Piti Ochoa Ughini"/>
        </div>
        
        <div class="list_blog">
            <h2 class="st_tl"><a href="<?php echo $this->urlbase.'/blogdapiti'; ?>">blog da piti</a></h2>
            <ul>
                <?php foreach($this->blog as $blog){ 
                    $img = glob('public/upload/blog/'.$blog['BLO_ID'].'.*');
                ?>
                <li>
                    <?php if(isset($img[0])){ ?>
                    <a href="<?php echo $this->urlbase.'/blogdapiti/index/id/'.$blog['BLO_ID']; ?>">
                        <img src="<?php echo $this->urlbase.'/'.$img[0]; ?>" class="foto" alt="<?php echo $blog['BLO_NOM']; ?>" />
                    </a>
                    <?php } ?>
                    <div class="data">
                        <div class="dia"><?php echo substr($blog['BLO_DAT'], 8,2); ?></div>
                        <div class="mes"><?php echo strtoupper(Datetools::num_Mes(substr($blog['BLO_DAT'], 5,2))); ?><br></div>
                        <div class="ano"><?php echo substr($blog['BLO_DAT'],0,4); ?></div>
                    </div>
                    <div class="texto">
                        <div class="tl"><?php echo $blog['BLO_NOM']; ?></div>
                        <p><?php echo $blog['BLO_DES']; ?></p>
                        <a href="<?php echo $this->urlbase.'/blogdapiti/index/id/'.$blog['BLO_ID']; ?>" class="mais">ver mais</a>
                    </div>
                </li>
                <?php }  ?>
                
            </ul>
        </div>
    </div>
    <div class="col2">
        
        <div class="conheca ctn_caixa">
            <a href="<?php echo $this->urlbase; ?>/cursos">
                <img src="<?php echo $this->urlbase; ?>/public/media/images/cursos.png" alt="Conheça os nossos cursos" />
                <div class="caixa_tl">
                    <div class="st_cima"></div>
                    <div class="tl">
                        Conheça os nossos cursos
                    </div>
                </div>
            </a>
        </div>
        
        <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpiti.redacao&amp;width&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true&amp;appId=688243397900389" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:290px; width: 296px;" allowTransparency="true"></iframe>
        
    </div>
</div>